package com.esun.gateway.bean;

import java.util.ArrayList;
import java.util.List;

public class Result {

    private boolean success;
    private String message;
    private List<Object> root = new ArrayList<Object>();

    public Result(){};

    public Result(boolean success, String message, List<Object> root) {
        this.success = success;
        this.message = message;
        this.root = root;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<Object> getRoot() {
        return root;
    }

    public void setRoot(List<Object> root) {
        this.root = root;
    }
}
